import {deleted, get, post, put} from "@/api/client";

/**
 * 查询分页列表
 * @param  data
 */
export const getProgressPage = (data) => {
    return post(`/progress/page`, data);
};

/**
 * 修改Progress
 * @param  Progress
 */
export const updateProgress = (data) => {
    return post("/progress/updateById", data);
};

/**
 * 添加信息
 * @param  Progress
 */
export const addProgress = (data) => {
    return post("/progress/save", data);
};
/**
 * 删除
 * @param  id
 */
export const deletedProgress = (data) => {
    return deleted("/progress/delete", data);
};

/**
 * 根据id查询
 * @param  id
 */
export const getProgressById = (id) => {
    return get(`/progress/detail`, {id});
};

/**
 * 查询全部列表
 */
export const getProgressList = () => {
    return get(`/progress/list`);
};
